package com.kxmall.storage.domain.bo;

import com.kxmall.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;


/**
 * 仓库商品业务对象 kx_storage_goods
 */

@Data
@ApiModel("仓库商品业务对象")
public class KxStorageGoodsBo {

    @ApiModelProperty(value = "仓库商品主键")
    @NotNull(message = "仓库商品主键不能为空", groups = { EditGroup.class })
    private Long id;

    @ApiModelProperty(value = "仓库ID")
    private Long storageId;

    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @ApiModelProperty(value = "商品规格ID")
    private Long productAttrId;

    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "统一查询关键字")
    private String keyword;

    @ApiModelProperty(value = "销售状态1上架0下架")
    private Integer status;

    @ApiModelProperty(value = "库存")
    private Long stock;

    @ApiModelProperty(value = "销售量")
    private Long sales;

    @ApiModelProperty(value = "冻结库存")
    private Long frezzStock;

    @ApiModelProperty(value = "当前售价")
    private BigDecimal price;

    @ApiModelProperty(value = "预警数量")
    private Long warningNum;

    @ApiModelProperty(value = "去除商品部分")
    private List<Long> notIds;

}
